﻿/*
Dlg_Options.hpp
*/
class Simple_List {
	type = CT_LISTBOX;
	style = ST_LEFT;
	idc = -1;
	colorSelect[] = {1, 1, 1, 1};
	colorSelectBackground[] = {0.2, 0.4, 1, 1};
	colorText[] = {0, 0, 0, 1};
	colorBackground[] = {0.02, 0.11, 0.27, 0.4};
	font = FontM;
	sizeEx = 0.02;
	rowHeight = 0.02;
	offsetX = 0.003;
	offsetY = 0.003;
	offsetPressedX = 0.002;
	offsetPressedY = 0.002;
	colorFocused[] = {0.02, 0.11, 0.27, 0.4};
	colorShadow[] = {0.2, 0.2, 0.2, 0.8};
	colorBorder[] = {0.4, 0.4, 0.4, 1};
	borderSize = 0.03;
	soundEnter[] = {"\ca\ui\data\sound\mouse2", 0.15, 1};
	soundPush[] = {"\ca\ui\data\sound\new1", 0.15, 1};
	soundClick[] = {"\ca\ui\data\sound\mouse3", 0.15, 1};
	soundEscape[] = {"\ca\ui\data\sound\mouse1", 0.15, 1};
	soundSelect[] = {"",0.1,1};
	soundExpand[] = {"",0.1,1};
	soundCollapse[] = {"",0.1,1};
	maxHistoryDelay = 1;
	autoScrollSpeed = -1;
	autoScrollDelay = 5;
	autoScrollRewind = 0;

	class ScrollBar
	{
		color[] = {1,1,1,0.6};
		colorActive[] = {1,1,1,1};
		colorDisabled[] = {1,1,1,0.3};
		thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
		arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
		arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
		border = "\ca\ui\data\ui_border_scroll_ca.paa";
	};
};

class Simple_Title {
	idc = -1;
	font = FontM;
	sizeEx = 0.03;
	colorBackground[] = { 0.0549 , 0.0980 , 0.0588, 0.5 };
	colorText[] = { 0.9255 , 0.8784 , 0.4431, 0.8805, 1 };
	colorShadow[] = { 0, 0, 0, 0.5 }; 
	style = ST_LEFT + ST_SHADOW;
	type = CT_STATIC;
};


class Simple_Button{
	  idc = -1;
	  type = CT_BUTTON;
	  style = ST_CENTER;
	  default = false;
	  font = FontM;
	  sizeEx = 0.03;
	  colorText[] = { 0, 0, 0, 1 };
	  colorFocused[] = { 1, 1, 1, 1 }; // border color for focused state
	  colorDisabled[] = { 0, 0, 1, 0.7 }; // text color for disabled state
	  colorBackground[] = { 1, 1, 1, 0.5 };
	  colorBackgroundDisabled[] = { 1, 1, 1, 0.5 }; // background color for disabled state 
	  colorBackgroundActive[] = { 1, 1, 1, 0.5 }; // background color for active state 
	  offsetX = 0.003; 
	  offsetY = 0.003; 
	  offsetPressedX = 0.002; 
	  offsetPressedY = 0.002; 
	  colorShadow[] = { 0, 0, 0, 0.5 }; 
	  colorBorder[] = { 0, 0, 0, 1 }; 
	  borderSize = 0; 
	  soundEnter[] = { "", 0, 1 }; // no sound 
	  soundPush[] = { "\ca\ui\data\sound\new1", 0.1, 1 }; 
	  soundClick[] = { "", 0, 1 }; // no sound 
	  soundEscape[] = { "", 0, 1 }; // no sound 
	  action = "";
	};



class DLG_Options
{
	idd = 654333;
	movingEnable = true;
	onLoad = "uiNamespace setVariable [""OPTIONS_DIALOG"", _this select 0]; _void = [] execVM ""base\options\fill_options.sqf""";
	controlsBackground[] = {Background};
	objects[] = {};  
	controls[] = 
	{		
		Title, Btn_Bug_Tete,
		Ctn_distance, Title_Distance, List_Distance,
		Ctn_herbe, Title_Herbe, List_Herbe,
		Btn_Ok
	};
	

	class Background {
			moving = 1;
			idc = -1;
			type = CT_STATIC;
			style = ST_LEFT;
			colorBackground[] = { 0.2275 , 0.2275 , 0.2275, 0.70 };
			font = FontM;
			sizeEx = 0.03;
			colorText[] = { 0.9255 , 0.8784 , 0.4431, 0.8805, 1 };
			x = 0.3460;
			y = 0.2654;
			w = 0.3214;
			h = 0.4332;
			text = "";
		};


	class Title  : Simple_Title {
			x = 0.3504;
			y = 0.2711;
			w = 0.3126;
			h = 0.0447;
			text = $STR_OPTIONS_TITLE;
		};


	class Btn_Bug_Tete  : Simple_Button {
			colorBackground[] = { 1 , 1 , 1, 1 };
			x = 0.3853;
			y = 0.3322;
			w = 0.2429;
			h = 0.0437;
			text = $STR_OPTIONS_BUGHEAD_TITLE;
			action = "closeDialog 0;_void = [0] execVM ""base\options\head_bug.sqf""";
		};


	class Ctn_distance  : RscText {
			colorBackground[] = { 1 , 1 , 1, 1 };
			x = 0.3500;
			y = 0.3932;
			w = 0.3150;
			h = 0.1060;
			text = "";
		};


	class Title_Distance  : RscText {
			colorBackground[] = { 0 , 0 , 0, 1 };
			x = 0.3531;
			y = 0.3968;
			w = 0.3084;
			h = 0.0321;			
			text = $STR_OPTIONS_VIEWDISTANCE_TITLE;
		};


	class List_Distance  : Simple_List {
			idc =  4684;
			x = 0.3536;
			y = 0.4324;
			w = 0.3076;
			h = 0.0625;
			text = "";
		};


	class Ctn_herbe  : RscText {
			colorBackground[] = { 1 , 1 , 1, 1 };
			x = 0.3501;
			y = 0.5149;
			w = 0.3150;
			h = 0.1060;
			text = "";
		};


	class Title_Herbe  : RscText {
			colorBackground[] = { 0 , 0 , 0, 1 };
			x = 0.3532;
			y = 0.5184;
			w = 0.3084;
			h = 0.0321;
			text = $STR_OPTIONS_HERBE_TITLE;
		};


	class List_Herbe  : Simple_List {
			idc =  4685;
			x = 0.3537;
			y = 0.5540;
			w = 0.3076;
			h = 0.0625;
			text = "";
		};

	class Btn_Ok  : Simple_Button {
			colorBackground[] = { 1 , 1 , 1, 1 };
			x = 0.4393;
			y = 0.6419;
			w = 0.1348;
			h = 0.0369;
			text = "OK";
			action = "_void = [] execVM ""base\options\Set_Options.sqf""";
		};

	
};
